#ifndef __SIMULATION__
#define __SIMULATION__


#include<stdio.h>
#include<errno.h>
#include<time.h>
#include<windows.h>
#include<process.h>
#include"Elevator.h"
//define events
#define UserNumber 10
typedef enum UserState{Anywhere,Wait,Move,Arrive} UserState;
typedef struct User
{
	int userNumber;
	int time;
	int from;
	int to;
	int carNumber;
	int currentFloor;
	UserState userState;
} User;
//extern HANDLE arrivalEvent[5][2];

extern struct User elevator_user[UserNumber];

void ReadCMDFromFile(char *fn);

unsigned __stdcall userThread(LPVOID pvPARAM);

void generateUsers();

#endif